#include <iostream>
#include <math.h>
using namespace std;

int main()
{
int a=12345;
int b;
int c;
cout<<"chislo a=";
b=a%1000;
c=(a-b)/1000;
cout<<a<<"\n";
cout<<b<<"\n";
cout<<c;
return 0;
}

